import hashlib


def md5(file="",string=""):
    if string != "":
        return hashlib.md5(string.encode()).hexdigest()
    with open(file,"rb") as fp:
        return hashlib.md5(fp.read()).hexdigest()

if __name__ == '__main__':
    with open("../prc.hoi4","r",encoding="utf-8") as fp:
        string = fp.readlines()
        sum = md5(string= "".join(string[:-1]))
        print(sum)